<include file="System:leftmenu" />

<div class="content-right fl">
    <h1 class="content-right-title">添加/编辑幻灯片</h1>
    

<form id="form" aciton="" method="post" enctype="multipart/form-data">

<div class="panel-single panel-single-light mgt20">
    <h3 class="cst_h3 mgb20">幻灯片</h3>
    <div class="formitems">
        <label class="fi-name"><span class="colorRed">*</span>标题：</label>
        <div class="form-controls">
            <input type="text" class="input xxlarge" name="title" value="<?php echo $focus['title'];?>" maxlength="22">
            <span class="fi-help-text">必填</span>
        </div>
    </div>
    
    <div class="formitems">
        <label class="fi-name">链接：</label>
        <div class="form-controls">
            <input type="text" class="input xxlarge" name="link" value="<?php echo $focus['link'];?>">
            <span class="fi-help-text">选填</span>
        </div>
    </div>
	
    <div class="formitems">
        <label class="fi-name">排序：</label>
        <div class="form-controls">
            <input type="text" class="input mini" name="ord" value="<?php echo $focus['ord'];?>">
            <span class="fi-help-text">数字越小越靠前,越大越靠后</span>
        </div>
    </div>
    
    <div class="formitems">
        <label class="fi-name">是否显示：</label>
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" class="is_free_logistics" value="1" name="status" <?php echo isset($focus['status']) && ($focus['status']) ? "checked" : (!isset($focus['status']) ? "checked":"");?>>显示</label>
                <label><input type="radio" class="is_free_logistics" value="0" name="status" <?php echo isset($focus['status']) && (!$focus['status']) ? "checked" : "";?>>隐藏</label>
            </div>
            <span class="fi-help-text"></span>
        </div>
    </div>

    <div class="formitems">
        <label class="fi-name">图片：</label>
	    <div class="form-controls pdt5 j-imglistPanel">

    <div id="uploadPic">
      <ul id="uploadlist" style=" height:90px; overflow:hidden;">
	        <li>
	          <div class="displayimg"><img src="<?php echo C("UPYUN_DOMAIN");?><?php echo $focus['pic'];?>" onerror="javascript:this.src='__STATIC__admin/images/error.png';"/></div>
	        </li>
      </ul>
      <div style="clear:both;"></div>
    </div>
	        <span class="fi-help-text">建议图片尺寸为640px * 300px</span>
	    </div>
    </div>
    
    <div class="formitems">
        <label class="fi-name">选择图片上传：</label>
        <div class="form-controls">
            <input type="file" class="input" name="pic" value="上传">
            <span class="fi-help-text"></span>
        </div>
    </div>

</div>

<div class="panel-single panel-single-light mgt20">

	<a href="javascript:$('#form').submit();" class="btn btn-primary j-add">保存</a>
	
</div>
</form>

</div>
